﻿<%@ Page Language="C#" MasterPageFile="~/Common/MasterPage.master" AutoEventWireup="true" CodeFile="NewsList.aspx.cs" Inherits="News_NewsList" Title="Untitled Page" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="left">
      <div class="box_1">
        <div class="left_title">新闻类型</div>
        <div class="left_news">
          <ul>
            <li><a href="NewsList.aspx?type=all" class="hover">全部</a></li> 
            <li><a href="NewsList.aspx?type=declare">申报</a></li>
            <li><a href="NewsList.aspx?type=approval">评审</a></li>
            <li><a href="NewsList.aspx?type=others">其他</a></li>
          </ul>
        </div>
      </div>
      <div class="box_1">
        <div class="left_title">新闻搜索</div>
        <div class="left_nr">
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td height="30">
                      标题：</td>
                  <td>
                      <asp:TextBox ID="txtTopic" runat="server" CssClass="input_1"></asp:TextBox></td>
              </tr>
              <tr>
                  <td height="30">
                  类型：
                  </td>
                  <td>
                      <asp:DropDownList ID="ddlType" runat="server">
                          <asp:ListItem></asp:ListItem>
                          <asp:ListItem>申报</asp:ListItem>
                          <asp:ListItem>评审</asp:ListItem>
                          <asp:ListItem>其他</asp:ListItem>
                      </asp:DropDownList></td>
              </tr>
              <tr>
                  <td colspan="2" height="30">
                  发表时间：
                  </td>
              </tr>
           <tr>
               <td align="right" width="20%" height="30">
                   自：</td>
               <td>
               <input id="txtTime1" class="input_1" type="text" runat="server"  readonly="readOnly"/></td>
           </tr>
           <tr>
               <td align="right" width="20%" height="30">
                   至：</td>
               <td>
                   <input id="txtTime2" class="input_1" type="text" runat="server"  readonly="readOnly"/></td>
           </tr>
           <tr>
               <td align="center" colspan="2" height="30">
                   <asp:ImageButton ID="btnSeach" runat="server" ImageUrl="~/Images/sousuo.gif" OnClick="btnSeach_Click" /></td>
           </tr>
          </table>
        </div>
      </div>
      <div class="box_1" style="margin:0px;">
        <div class="left_title">跳转到其他页面</div>
        <div class="left_nr">
           <ul>
            <li><a href="http://www.zafu.edu.cn">浙江农林大学主页</a></li>
           <li><a href="http://jwc.zafu.edu.cn">浙江农林大学教务处</a></li> 
          </ul>
        </div>
      </div>
    </div>
    <div class="right">
      <div class="right_title"><img src="../Images/xinwenxinxi.gif" />
        <div>当前位置：<a href="../Index.aspx">首页</a> > <span>新闻信息</span></div>
      </div>
     <div style="margin:20px 0px;">
    <asp:Repeater ID="Repeater1" runat="server">
    <HeaderTemplate>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
    	<tr align="right">
         <td colspan="3">
    	</tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr align="left">
            <td><a href="NewsList.aspx?type=<%# Eval("type") %>">[<%# Eval("type") %>]</a></td>
    		<td><a href="Newsdetail.aspx?id=<%# Eval("id") %>"><%#strTrim(Convert.ToString(Eval("title")),Convert.ToString(Eval("highlight")))%></a></td>
    		<td><%#ToShortTime(Convert.ToString(Eval("date"))) %></td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    <asp:Label ID="lblEmpty" Text="没有任何新闻……" runat="server"  Visible='<%# bool.Parse((Repeater1.Items.Count==0).ToString()) %>' ForeColor="DimGray"></asp:Label> 
    </FooterTemplate>
    </asp:Repeater>
    </div> 
    <div style="border-top:solid 1px #84888a; ">
     <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" FirstPageText="首页"
      HorizontalAlign="Right" LastPageText="末页" NextPageText="下页" 
      PageIndexBoxType="TextBox" PageSize="15" PrevPageText="上页" ShowCustomInfoSection="Left"
      ShowPageIndexBox="Always" Width="100%" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>" OnPageChanged="AspNetPager1_PageChanged" CustomInfoSectionWidth="50%" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" CustomInfoTextAlign="Left">
      </webdiyer:AspNetPager>
      </div>          
    </div>
    <div class="clear"></div>
</asp:Content>

